NAND: Do not write or read a whole block if it is larger than the environment
authorGuennadi Liakhovetski <[email protected]>
Thu, 31 Jul 2008 10:38:26 +0000 (12:38 +0200)
committerScott Wood <[email protected]>
Tue, 12 Aug 2008 16:31:29 +0000 (11:31 -0500)
commitc3db8c649c6ab3da2f1411c4c6d61aecea054aa4
tree3e49b8c2e7c66422b4538a34bbc557c57df2c511
parenteafcabd15f00c142156235c519fcc55b10993241
NAND: Do not write or read a whole block if it is larger than the environment

Environment can be smaller than NAND block size, do not need to read a whole
block and minimum for writing is one page. Also remove an unused variable.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
Signed-off-by: Scott Wood <[email protected]>
common/env_nand.c